export class StringUtils {
  /**
   * 字符串为null或者为空
   */
  public static isNullOrEmpty(text: string): boolean {
    return text === null || text === undefined || text.trim().length === 0;
  }

  /**
   * 字符串是否不为空
   */
  public static isNotNullOrEmpty(text: string): boolean {
    return !StringUtils.isNullOrEmpty(text);
  }
}